package listdemo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: MENG
 * Date: 2022-06-27
 * Time: 21:07
 */
public class Test {
    public static void main(String[] args) {


        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(25);
        myArrayList.add(29);
        myArrayList.add(89);
        myArrayList.display();
        System.out.println();
        myArrayList.add(0,1);
        myArrayList.display();
        System.out.println(myArrayList.indexOf(5));
        System.out.println(myArrayList.contains(89));
    }
}
